package com.service;

import java.util.List;
import java.util.Map;

import com.entity.ClassEvaluation;
import com.entity.User;
import com.entity.UserRole;

public interface UserService {
	public void delete_do(Integer id) throws Exception;

	public void add(User user) throws Exception;

	
	/**
	 * 根据登录信息获取用户
	 */
	public User getUserByLogin(String username, String password) throws Exception;
	
	/**
	 * 根据Id获取用户
	 */
	public User getUserById(Long id) throws Exception;
	
	/**
	 * 根据提交信息更新用户
	 */
	public Integer modUserBySubmit(User user) throws Exception;
	
	/**
	 * 获取用户列表
	 */
	public List<User> getUserListByUser(User user) throws Exception;
	
	/**
	 * 获取学生评价次数
	 */
	public Integer getEvaTimes(User user) throws Exception;
	
	/**
	 * 新增一个课堂评价记录
	 */
	public void addEva(ClassEvaluation ce) throws Exception;
	
	/**
	 * 获取用户角色列表
	 */
	public List<UserRole> getUserRoleList() throws Exception;
	
	/**
	 * 获取全部用户
	 */
	public List<User> getAllUsers(User user) throws Exception;
	
	/**
	 * 导入用户预览
	 */
	public Map<String, Object> getImportUserDetails(List<List<String>> rows) throws Exception;
	

}
